package com.yunqing.restkeeper.store.api.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunqing.restkeeper.store.api.entity.Table;

/**
 * @ClassName ITableService
 * @Description TODO
 * @author: puyunqing
 * @Date: 2025/8/22
 */
public interface ITableService extends IService<Table> {

    //新增桌台
    boolean add(Table table);

    //桌台列表
    IPage<Table> queryPageByAreaId(String areaId, int pageNum, int pageSize);

    //根据区域id和状态来获取到状态相关的数量值
    Long countTableByStatus(String areaId,Integer status);

}
